﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SmartAgricultureService.Tables
{
    [Table("Upload")]
    public class UploadEntry
    {
        [Key]
        [MaxLength(50)]
        public string Id { get; set; }
        [Required]
        [MaxLength(50)]
        public string DeviceId { get; set; }
        public decimal Temperature { get; set; }
        public decimal Humidity { get; set; }
        public decimal Illumination { get; set; }
        public DateTime CreateDate { get; set; }
        public virtual DeviceEntry Device { get; set; }
    }
}